home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsIMarkupDocumentViewer.idl < prev    next >
Text File  |  2006-05-08  |  5KB  |  162 lines

  1. /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * ***** BEGIN LICENSE BLOCK *****
  4.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  5.  *
  6.  * The contents of this file are subject to the Mozilla Public License Version
  7.  * 1.1 (the "License"); you may not use this file except in compliance with
  8.  * the License. You may obtain a copy of the License at
  9.  * http://www.mozilla.org/MPL/
  10.  *
  11.  * Software distributed under the License is distributed on an "AS IS" basis,
  12.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13.  * for the specific language governing rights and limitations under the
  14.  * License.
  15.  *
  16.  * The Original Code is the Mozilla browser.
  17.  *
  18.  * The Initial Developer of the Original Code is
  19.  * Netscape Communications, Inc.
  20.  * Portions created by the Initial Developer are Copyright (C) 1999
  21.  * the Initial Developer. All Rights Reserved.
  22.  *
  23.  * Contributor(s):
  24.  *   Travis Bogard <travis@netscape.com>
  25.  *
  26.  * Alternatively, the contents of this file may be used under the terms of
  27.  * either of the GNU General Public License Version 2 or later (the "GPL"),
  28.  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29.  * in which case the provisions of the GPL or the LGPL are applicable instead
  30.  * of those above. If you wish to allow use of your version of this file only
  31.  * under the terms of either the GPL or the LGPL, and not to allow others to
  32.  * use your version of this file under the terms of the MPL, indicate your
  33.  * decision by deleting the provisions above and replace them with the notice
  34.  * and other provisions required by the GPL or the LGPL. If you do not delete
  35.  * the provisions above, a recipient may use your version of this file under
  36.  * the terms of any one of the MPL, the GPL or the LGPL.
  37.  *
  38.  * ***** END LICENSE BLOCK ***** */
  39.  
  40. /**
  41.  * The nsIContentViewerEdit    
  42.  */
  43.  
  44. /**
  45.  * The nsIMarkupDocumentViewer
  46.  * This interface describes the properties of a content viewer 
  47.  * for a markup document - HTML or XML
  48.  */
  49.  
  50. #include "nsISupports.idl"
  51.  
  52. interface nsIDOMNode;
  53.  
  54.  
  55. [scriptable, uuid(18cbdb18-3917-42fd-9c4a-0b2112d41a6d)]
  56. interface nsIMarkupDocumentViewer : nsISupports
  57. {
  58.  
  59.     /*
  60.     Scrolls to a given DOM content node. 
  61.     */
  62.     void scrollToNode(in nsIDOMNode node);
  63.  
  64.     /** The amount by which to scale all text. Default is 1.0. */
  65.     attribute float textZoom;
  66.  
  67.     /** Disable entire author style level (including HTML presentation hints) */
  68.     attribute boolean authorStyleDisabled;
  69.  
  70.     /*
  71.     XXX Comment here!
  72.     */
  73.     attribute ACString defaultCharacterSet;
  74.  
  75.     /*
  76.     XXX Comment here!
  77.     */
  78.     attribute ACString forceCharacterSet;
  79.  
  80.     /*
  81.     XXX Comment here!
  82.     */
  83.     attribute ACString hintCharacterSet;
  84.  
  85.     /*
  86.     XXX Comment here!
  87.     */
  88.     attribute PRInt32 hintCharacterSetSource;
  89.  
  90.     /*
  91.     character set from prev document 
  92.     */
  93.     attribute ACString prevDocCharacterSet;
  94.  
  95.     //void GetCharacterSetHint(in wstring hintCharset, in PRInt32 charsetSource);
  96.  
  97.     /**
  98.     * Tell the container to shrink-to-fit or grow-to-fit its contents
  99.     */
  100.     void sizeToContent();
  101.  
  102.   /**
  103.    * Options for Bidi presentation.
  104.    *
  105.    * Use these attributes to access the individual Bidi options.
  106.    */
  107.  
  108.   /**
  109.    * bidiTextDirection: the default direction for the layout of bidirectional text.
  110.    *                    1 - left to right
  111.    *                    2 - right to left
  112.    */
  113.   attribute octet bidiTextDirection;
  114.   
  115.   /**
  116.    * bidiTextType: the ordering of bidirectional text. This may be either "logical"
  117.    * or "visual". Logical text will be reordered for presentation using the Unicode
  118.    * Bidi Algorithm. Visual text will be displayed without reordering. 
  119.    *               1 - the default order for the charset
  120.    *               2 - logical order
  121.    *               3 - visual order
  122.    */
  123.   attribute octet bidiTextType;
  124.  
  125.   /**
  126.    * bidiControlsTextMode: the order of bidirectional text in form controls.
  127.    *                       1 - logical
  128.    *                       2 - visual
  129.    *                       3 - like the containing document
  130.    */
  131.   attribute octet bidiControlsTextMode;
  132.  
  133.   /**
  134.    * bidiNumeral: the type of numerals to display. 
  135.    *              1 - depending on context, default is Arabic numerals
  136.    *              2 - depending on context, default is Hindi numerals
  137.    *              3 - Arabic numerals
  138.    *              4 - Hindi numerals
  139.    */
  140.   attribute octet bidiNumeral;
  141.  
  142.   /**
  143.    * bidiSupport: whether to use platform bidi support or Mozilla's bidi support
  144.    *              1 - Use Mozilla's bidi support
  145.    *              2 - Use the platform bidi support
  146.    *              3 - Disable bidi support
  147.    */
  148.   attribute octet bidiSupport;
  149.  
  150.   /**
  151.    * bidiCharacterSet: whether to force the user's character set
  152.    *                   1 - use the document character set
  153.    *                   2 - use the character set chosen by the user
  154.    */
  155.   attribute octet bidiCharacterSet;  
  156.   
  157.   /**
  158.    * Use this attribute to access all the Bidi options in one operation
  159.    */
  160.   attribute PRUint32 bidiOptions;
  161. };
  162.